<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Vue.js</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
    <div id="vue-app">
        <h1>键盘 Events</h1>
        <label>姓名：</label>
        <input type="text" @keyup="logName">
        <label>性别：</label>
        <input type="text" @keydown.enter="logSex">
        <label>年龄：</label>
        <input type="text" @keyup.alt.enter="logAge">
    </div>
    <script src="app.js"></script>
</body>
</html>